#pragma  once
#include <iostream>
#include <string>

using namespace std;



class RNDFEntry
    {
    public:
        string RNDF_name;			//  name of the rndf file
        time_t AtTime;              //  Time stamp recording when the entry added 
    public:
        RNDFEntry(void)
            {
            RNDF_name="NULL.rndf";
            AtTime=0;
            }
        RNDFEntry(char *rndf_name, time_t time)
            {
            RNDF_name=rndf_name;
            AtTime=time;
            }
        RNDFEntry(string rndf_name, time_t time)
            {
            RNDF_name=rndf_name;
            AtTime=time;
            }
        RNDFEntry(RNDFEntry& that)
            {
            RNDF_name=that.RNDF_name;
            AtTime=that.AtTime;
            //return *this;
            }
        RNDFEntry& operator=(RNDFEntry& that)
            {
            RNDF_name=that.RNDF_name;
            AtTime=that.AtTime;
            return *this;
            }

    public:
        ~RNDFEntry(){}
        friend ostream &operator <<(ostream &stream, RNDFEntry e)
            {
            stream<<"rndf name is: "<<e.RNDF_name<<", at time: "<<e.AtTime<<endl;
            return stream;
            }
    };